|
|
|
|
|
|
|
Figure 4.2
A list box with multiple columns. |
|
|
|
|
|
|
|
|
Examples Filename: Employee8.frm |
|
|
|
|
|
|
|
|
You can have the list sorted by setting the Sorted property to True. The sorting in a list box is always in an ascending order. There is no option to have a descending sort. |
|
|
|
|
|
|
|
|
The normal list box you add to a form allows a user to select just one of the values at a time. You can allow the user to highlight multiple items in the list box by setting the MultiSelect property to 1-Simple. When the list box is set to this value, the user can continue to click items in the list box. Each time he or she clicks a new item, that item will be highlighted. If the user clicks one of the items already highlighted, that item will no longer be highlighted. |
|
|
|
|
| Changing the Multi-Select Capabilities of a List Box 1. Change the MultiSelect property to 1-Simple. 2. Run the form and try clicking several of the items in the list box. |  | Setting the MultiSelect property to True will allow the user to choose multiple items from the list box control. |
|
|
|